<?php


use app\common\utils\WeChatUtils;

require_once './application/common/utils/WeChatUtils.php';
$wechat = new WeChatUtils('wxfd3cc998b774cdf0','a87efb2dda80ac5e1cb78cdd5fd54e0c','ssq');
//$result = $we_chat->createMenu($menu);
$menu = <<<JSON
{


    "button": [
        {	
          "type":"view",
          "name":"解签记录",
          "url":"http://www.jipintc.com/"
        },
        {	
          "type":"view",
          "name":"查看寺庙",
          "url":"http://www.jipintc.com/index/temple/temple_detail"
        }
    ]
    
}
JSON;
$wechat->deleteMenu();
$result = $wechat->createMenu($menu);
//var_dump($result);
//phpinfo();